import fetch from '@/common/utils/http'

export const fetchData = (data: { accountId: string }) =>
  fetch({
    url: '/call/web/config/account-config/query',
    method: 'POST',
    data: data
  })

export const updateData = (data: any) =>
  fetch({
    url: '/call/web/config/account-config/modify',
    method: 'POST',
    data
  })

export const getAgentConfig = (data: any) =>
  fetch({
    url: '/platform/action/agent/front/get',
    method: 'POST',
    data: data
  })

/* 编辑设置 */
export const updateAgentConfig = (data: any) =>
  fetch({
    url: '/platform/action/agent/front/update',
    method: 'POST',
    data: data
  })

// export const changeStatus = (data: StatusParams) =>
//   fetch({
//     url: 'call/action/config/ivr/status',
//     method: 'POST',
//     data
//   })
